from django.contrib import admin
from django.urls import path
from . import views
from rest_framework.routers import DefaultRouter
from rest_framework_simplejwt.views import TokenObtainPairView

urlpatterns = [
    path('verification/<str:func>/<uuid:uuid>/', views.ImageVerifyView.as_view(), name='verification'),
    # path('login/', TokenObtainPairView.as_view(), name='login')
    path('login/', views.MyTokenObtainPairView.as_view(), name='login')
]
router = DefaultRouter()
router.register('users', views.UserViewSet)
router.register('area', views.AreaViewSet)
router.register('address', views.AddressViewSet)
urlpatterns += router.urls
